import request from '@/utils/request'

// 查询word模板列表
export function listWordTemplate(query) {
  return request({
    url: '/word/wordTemplate/list',
    method: 'get',
    params: query
  })
}

// 查询word模板详细
export function getWordTemplate(id) {
  return request({
    url: '/word/wordTemplate/' + id,
    method: 'get'
  })
}

// 保存word模板
export function saveWordTemplate(data) {
  return request({
    url: '/word/wordTemplate/save',
    method: 'post',
    data: data
  })
}

// 删除word模板
export function delWordTemplate(id) {
  return request({
    url: '/word/wordTemplate/' + id,
    method: 'delete'
  })
}

// 删除word模板关键字
export function delWordTemplateKeyWord(id) {
  return request({
    url: '/word/wordTemplateKeyword/' + id,
    method: 'delete'
  })
}

// 导出word模板
export function exportWordTemplate(query) {
  return request({
    url: '/word/wordTemplate/export',
    method: 'get',
    params: query
  })
}
